<template>
  <div class="work">
    <div class="title">常用功能</div>
    <div class="menu-c">
      <div class="menu" v-for="item in menus" :key="item.id">
        <a :href="item.url" target="_blank"> {{ item.name }}</a>
      </div>
    </div>

    <div class="title">所有应用</div>
    <div class="menu-c">
      <div class="menu" v-for="item in appList" :key="item.id">
        <a :href="item.url" target="_blank"> {{ item.name }}</a>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      appList: [
        {
          id: "001",
          name: "腾讯",
          url: "https://www.qq.com",
        },
        {
          id: "002",
          name: "新浪",
          url: "https://www.sina.com",
        },
        {
          id: "003",
          name: "搜狐",
          url: "https://www.sohu.com",
        },
        {
          id: "004",
          name: "百度",
          url: "https://www.baidu.com",
        },
      ],
      menus: [
        {
          id: "001",
          name: "发送通知",
          url: "http://www.baidu.com",
        },
        {
          id: "002",
          name: "通知列表",
          url: "http://www.baidu.com",
        },
      ],
      showExit: false,
    };
  },
};
</script>

<style lang="less">
.work {
  width: 100%;
  height: 100%;
  .title {
    padding: 20px;
  }

  .menu-c {
    width: 100%;
    display: flex;
    flex-direction: row;
    .menu {
      height: 100px;
      width: 200px;
      margin: 30px;
      line-height: 100px;
      text-align: center;
      background-color: white;
    }
  }
}
</style>
